package com.project.forlearning.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@ApiModel("user用户对象")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class User {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户账号")
    private String username;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("用户权限")
    private String auth;

    @ApiModelProperty("昵称")
    private String name;

    @ApiModelProperty("头像")
    private String headImage;

    @ApiModelProperty("个人简介")
    private String introduction;

    @ApiModelProperty("邮箱")
    private String mail;

    @ApiModelProperty("兴趣")
    private String habby;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("账号创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
